package com.erp.erp_ui.warehouse.req;

import org.hibernate.validator.constraints.NotEmpty;

import java.util.List;

/**
 * @ClassName : AddOtherInStockReq
 * @Description : 新增其它入库入参实体
 * @Author : lst
 * @Date: 2021-03-25 10:57
 */
public class AddOtherInStockReq {

    /**
     * 主键id
     */
    private Integer id;

    /**
     * 入库单号
     */
    @NotEmpty(message = "入库单号不能为空")
    private String billNo;

    /**
     * 新单号
     */
    private String newBillNo;

    /**
     * 入库人
     */
    private String person;

    /**
     * 入库人编码
     */
    private String personNo;

    /**
     * 仓库编码
     */
    private String warehouseCode;

    /**
     * 仓库名称
     */
    private String warehouseName;

    /**
     * 备注
     */
    private String memo;

    /**
     * 产品明细集合
     */
    private List<AddOtherInStockDetailReq> details;

    /**
     * 附件集合
     */
    private List<AnnexReq> annexList;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getBillNo() {
        return billNo;
    }

    public void setBillNo(String billNo) {
        this.billNo = billNo;
    }

    public String getNewBillNo() {
        return newBillNo;
    }

    public void setNewBillNo(String newBillNo) {
        this.newBillNo = newBillNo;
    }

    public String getPerson() {
        return person;
    }

    public void setPerson(String person) {
        this.person = person;
    }

    public String getPersonNo() {
        return personNo;
    }

    public void setPersonNo(String personNo) {
        this.personNo = personNo;
    }

    public String getWarehouseCode() {
        return warehouseCode;
    }

    public void setWarehouseCode(String warehouseCode) {
        this.warehouseCode = warehouseCode;
    }

    public String getWarehouseName() {
        return warehouseName;
    }

    public void setWarehouseName(String warehouseName) {
        this.warehouseName = warehouseName;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public List<AddOtherInStockDetailReq> getDetails() {
        return details;
    }

    public void setDetails(List<AddOtherInStockDetailReq> details) {
        this.details = details;
    }

    public List<AnnexReq> getAnnexList() {
        return annexList;
    }

    public void setAnnexList(List<AnnexReq> annexList) {
        this.annexList = annexList;
    }

    /**
     * 重写toString
     */
    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("AddOtherInStockReq").append('[')
                .append("id=")
                .append(id)
                .append(",billNo=")
                .append(billNo)
                .append(",newBillNo=")
                .append(newBillNo)
                .append(",person=")
                .append(person)
                .append(",personNo=")
                .append(personNo)
                .append(",warehouseCode=")
                .append(warehouseCode)
                .append(",warehouseName=")
                .append(warehouseName)
                .append(",memo=")
                .append(memo)
                .append(",details=")
                .append(details)
                .append(",annexList=")
                .append(annexList)
                .append(']');
        return sb.toString();
    }
}
